package com.campuscrowdsourcing.server.service;

import com.campuscrowdsourcing.server.domain.entity.SystemFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.campuscrowdsourcing.server.domain.vo.FileVO;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 文件信息表 服务类
 * </p>
 *
 * @author Xinyuan Zhao
 * @since 2023-03-20
 */
public interface SystemFileService extends IService<SystemFile> {


    /**
     * 上传文件
     * @param file 文件
     * @param userId 业务ID
     * @return 文件ID
     */
    FileVO uploadImageFile(MultipartFile file, Integer userId);
}
